#include <iostream>
#include <stdio.h>
class Test
{
	private:
		float re;
		float im;
	public:
		Test();
		friend std::istream& operator >> (std::istream &in, Test &t);
		friend std::ostream& operator << (std::ostream &out, Test t);
};
Test::Test()
{
	(*this).re = 0;
	(*this).im = 0;
}
std::istream& operator >> (std::istream &in, Test &t)
{
	in >> t.re >> t.im;
	return in;
}
std::ostream& operator << (std::ostream &out, Test t)
{
	out << t.re << " " << t.im;
	return out;
}
int main()
{
	Test t = Test();
	std::cout << t;
	Test t1;
	printf("\n");
	std::cin >> t1;
	std::cout << t1;
	return 0;
}